<template>
  <div>
    <VueUEditor @on-content="getContentHander"></VueUEditor>
    <button @click="getContent">获取</button>
  </div>
</template>


<script>
  import VueUEditor from "dm-vue-ueditor";
  import Utils from 'dm-dev-utils';
  export default {
    data () {
      return {
        editor : null
      }
    },
    components: {
      VueUEditor
    },
    created () {
      
    },
    methods: {
      getContentHander(editor){
        this.editor = editor;
      }
      ,
      getContent(){
        let content = this.editor.getContent();
        // console.log(content);
        this.editor.setContent("dafsadl;f");
      }
    },
    mounted () {
      
    }
  }
</script>

<style scoped>

</style>